<!--
 * @Descripttion: 
 * @Version: 
 * @Author: gaohj
 * @Date: 2022-12-20 16:19:52
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-12-20 17:04:00
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>js的三种引用方式之一 行内</title>
</head>
<body>
    <!-- a标签 -->
    <!-- <a href="javascript:alert(44944)">点我试试</a>
    <a href="javascript:alert('hello world')">点我试试2</a> -->

    <!-- 非a标签 -->
    <!-- <div onclick="alert(544)">
        你过来啊
    </div> -->

    <!-- 思考  a标签加上 onclick 问 href 和onclick 谁的优先级高 -->
    <a href="javascript:alert(00544)" onclick="alert('嘎嘎')">红鲤鱼绿鲤鱼与驴</a>
    <!-- onclick 高于href -->
</body>
</html>